/* theme color */
$--color-primary: #409EFF;

/* icon font path, required */
$--font-path: '~element-ui/lib/theme-chalk/fonts';

@import "~element-ui/packages/theme-chalk/src/index";
// @import "~theme/index.css";

/* 全局样式 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  /* 调整Element UI组件在移动端的样式 */
  .el-form-item {
    margin-bottom: 15px;
  }
  
  .el-dialog {
    width: 90% !important;
    margin-top: 10vh !important;
  }
  
  .el-message-box {
    width: 90% !important;
  }
  
  .el-card {
    margin-bottom: 10px;
  }
  
  .el-table {
    width: 100% !important;
    overflow-x: auto;
  }
  
  /* 移动端下调整按钮大小和间距 */
  .el-button {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .el-button+.el-button {
    margin-left: 5px;
  }
  
  /* 表格的分页器样式 */
  .el-pagination {
    white-space: normal !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 0;
  }
  
  .el-pagination .el-pagination__sizes {
    display: none !important;
  }
  
  /* 调整日期选择器在移动端的宽度 */
  .el-date-editor.el-input, 
  .el-date-editor.el-input__inner {
    width: 100% !important;
  }
}

/* 针对更小屏幕的适配 */
@media screen and (max-width: 576px) {
  .el-form-item__label {
    text-align: left !important;
    float: none !important;
    display: block !important;
    padding: 0 0 8px !important;
  }
  
  .el-form-item__content {
    margin-left: 0 !important;
  }
  
  /* 表单按钮在小屏幕上垂直排列 */
  .form-btns {
    display: flex;
    flex-direction: column;
  }
  
  .form-btns .el-button {
    margin: 5px 0 !important;
  }
}